﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.DTO
{
    public  class PriceTemplatePost
    {
        [MaxLength(30,ErrorMessage ="最大30字符")]
        [Required(ErrorMessage ="{0}必填")]
        [Display(Name ="名称")]
        public string Title { get; set; }

        [Display(Name = "是否默认")]
        public bool IsDefault { get; set; }

        public List<PriceTemplateItemPost> Items { get; set; }

        public PriceTemplatePost()
        {
            this.Items = new List<PriceTemplateItemPost>();
        }
    }
}
